package com.aaa.mrcai.controller;

import com.aaa.mrcai.result.AjaxResult;
import com.aaa.mrcai.service.GoStoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @author 惠普
 * @date 2021/12/20  9:22
 */
@RestController
@RequestMapping("goStore")
public class GoStoreController {

    @Autowired
    private GoStoreService goStoreService;

    @RequestMapping("/list/{id}")
    public AjaxResult storeGoodsList(@PathVariable("id")int id){
        return goStoreService.storeGoods(id);
    }
}
